/*
 * Copyright 2005-2013 shopxx.net. All rights reserved.
 * Support: http://www.shopxx.net
 * License: http://www.shopxx.net/license
 */
package net.starwifi.duobao.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Entity - 刮刮乐奖品设置
 *
 * @author SHOP++ Team
 * @version 3.0
 */
@Entity
@Table(name = "duob_ggljp")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "duob_Ggljp_sequence")
public class Ggljp extends BaseEntity {

	private static final long serialVersionUID = -3950317769006303385L;

	/** 访问路径前缀 */
	//private static final String PATH_PREFIX = "/consultation/content";

	/**
	 * 访问路径后缀
	 */
	private static final String PATH_SUFFIX = ".jhtml";
	private String name; //名称 （忽略）
	private Long gglhdid;//活动id
	private String jp; //奖项说明
	private Integer num; //奖品数量
	private Integer kc; //奖品库存
	private Double gl; //概率
	private String imgPath;//图片地址
	private String shopPath;//商品地址

	@Column
	@JsonProperty
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getGglhdid() {
		return gglhdid;
	}

	public void setGglhdid(Long gglhdid) {
		this.gglhdid = gglhdid;
	}

	@Column
	@JsonProperty
	public String getJp() {
		return jp;
	}

	public void setJp(String jp) {
		this.jp = jp;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getKc() {
		return kc;
	}

	public void setKc(Integer kc) {
		this.kc = kc;
	}

	public Double getGl() {
		return gl;
	}

	public void setGl(Double gl) {
		this.gl = gl;
	}
	@Column
	@JsonProperty
	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public String getShopPath() {
		return shopPath;
	}

	public void setShopPath(String shopPath) {
		this.shopPath = shopPath;
	}
}